home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / LCLINT-D.SPK / lclint / guide / Makefile < prev    next >
Makefile  |  1996-08-26  |  3KB  |  123 lines

  1. ###
  2. ### This Makefile produces the figures included in the LCLint User's
  3. ### Guide.
  4. ###
  5.  
  6. .SUFFIXES: .out .expect .c .lcl .h .lh .diff
  7. .PHONY: clean
  8.  
  9. RUNTOHTML = /u/evs/lclint/scripts/runtohtmls
  10. GENHTML = /u/evs/lclint/scripts/genhtmls
  11. CTOHTML = /u/evs/bin/ctohtmlplain
  12. BASEDIR = /u/evs/perl/basedir
  13. MAKERUNNER = /u/evs/lclint/scripts/makerunner
  14.  
  15. SHELL = /bin/csh 
  16.  
  17. DIFF = diff
  18.  
  19. all: fig2 fig3 fig4 fig5 fig6 fig7 fig8 fig9 fig10 fig11 fig12 fig13 \
  20.      fig14 fig15 fig16 fig17 fig18 fig19 fig20 fig21 fig22 sumsquares
  21.  
  22. test:
  23.     $(MAKE) >& all.out
  24.     $(DIFF) all.out all.expect
  25.  
  26. fig1:
  27.     @echo "Figure 1 is a picture"
  28.  
  29. fig2.html:
  30.     $(CTOHTML) palindrome.c mstring.h bool.h
  31.     echo "Figure 2.  ..."
  32.  
  33. fig2: palindrome.c mstring.h bool.h
  34.     -lclint palindrome.c |& $(RUNTOHTML) > fig2-out
  35.     presurround fig2-out
  36.  
  37. fig3: bool.c bool.h
  38.     lclint bool.c +predboolptr |& $(RUNTOHTML) > fig3-out
  39.     presurround fig3-out
  40.  
  41. fig4: modify.c
  42.     lclint modify.c +checks |& $(RUNTOHTML) > fig4-out
  43.     presurround fig4-out
  44.  
  45. fig5: globals.c
  46.     lclint globals.c +checks |& $(RUNTOHTML) > fig5-out
  47.     presurround fig5-out
  48.  
  49. fig6: only.c
  50.     lclint only.c  |& $(RUNTOHTML) > fig6-out
  51.     presurround fig6-out
  52.  
  53. fig7: stack.c
  54.     lclint stack.c |& $(RUNTOHTML) > fig7-out
  55.     presurround fig7-out
  56.  
  57. fig8: implicit.c
  58.     @echo "No output for Figure 8"
  59.     lclint implicit.c
  60.  
  61. fig9: rstring.c
  62.     lclint rstring.c |& $(RUNTOHTML) > fig9-out
  63.     presurround fig9-out
  64.  
  65. fig10: unique.c
  66.     lclint unique.c |& $(RUNTOHTML) > fig10-out
  67.     presurround fig10-out
  68.  
  69. fig11: returned.c
  70.     lclint returned.c  |& $(RUNTOHTML) > fig11-out
  71.     presurround fig11-out
  72.  
  73. fig12: exposure.c
  74.     lclint exposure.c +checks |& $(RUNTOHTML) > fig12-out
  75.     presurround fig12-out
  76.  
  77. fig13: usedef.c
  78.     lclint usedef.c |& $(RUNTOHTML) > fig13-out
  79.     presurround fig13-out
  80.  
  81. fig14: annotglobs.c
  82.     lclint annotglobs.c |& $(RUNTOHTML) > fig14-out
  83.     presurround fig14-out
  84.  
  85. fig15: null.c
  86.     lclint null.c |& $(RUNTOHTML) > fig15-out
  87.     presurround fig15-out
  88.  
  89. fig16: mstring.c
  90.     lclint mstringnn.c  |& $(RUNTOHTML) > fig16-out
  91.     presurround fig16-out
  92.  
  93. fig17: special.c
  94.     @echo "Figure 1 is a picture"
  95.  
  96. fig18: names.c
  97.     lclint names.c +distinctinternalnames +internalnamelookalike +ansireserved |& $(RUNTOHTML) > fig18-out
  98.     presurround fig18-out
  99.  
  100. fig19: order.c
  101.     lclint order.c +evalorderuncon |& $(RUNTOHTML) > fig19-out
  102.     presurround fig19-out
  103.  
  104. fig20: loop.c
  105.     lclint loop.c |& $(RUNTOHTML) > fig20-out
  106.     presurround fig20-out
  107.  
  108. fig21: switch.c
  109.     lclint switch.c |& $(RUNTOHTML) > fig20-out
  110.     presurround fig21-out
  111.  
  112. fig22: noeffect.c
  113.     lclint noeffect.c +noeffectuncon |& $(RUNTOHTML) > fig22-out
  114.     presurround fig22-out
  115.  
  116. fig23: ignore.c
  117.     lclint ignore.c |& $(RUNTOHTML) > fig23-out
  118.     presurround fig23-out
  119.  
  120. clean: 
  121.     -rm -f core a.out *.*~
  122.  
  123.